const config = require('../config');

// 获取环境变量的值
const project_name = config.project_name;
const tmp = {"appid": "APPID", "secret": "SECRET"}

const config = get_sys_config();

function get_sys_config() {
    let appid = process.env[`${project_name}_${tmp.appid}`];
    let secret = process.env[`${project_name}_${tmp.secret}`];
    return { appid, secret };
}

module.exports = config;